﻿using System.Windows.Controls;
using System.Windows.Input;
using ParseControls;

namespace ParseOnlineAdmin
{
    /// <summary>
    /// Interaction logic for ParseRelatedItems.xaml
    /// </summary>
    public partial class ParseRelatedItems : UserControl
    {
        public ParseRelatedItems()
        {
            InitializeComponent();
        }

        private void TextBox_KeyUp(object sender, KeyEventArgs e)
        {
            if (this.txtRelatedItem.Text != string.Empty)
            {
                if (e.Key == Key.Enter)
                {
                    ParseOne.InformationSending(
                        new ParseCustomEventArgs(
                            "Assign:Related:Item:View",
                            parameter: this.txtRelatedItem.Text));
                }
            }
        }
    }
}
